package com.xmy.study.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 帐号
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-08
 */
@Data
@TableName("per_student_account")
@ApiModel(value = "StudentAccount对象", description = "帐号")
public class StudentAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long schoolId;

    private Long studentId;

    @ApiModelProperty("学习姓名")
    private String studentName;

    @ApiModelProperty("0禁用，1正常，2试用")
    private Integer status;

    private String account;

    private String pwd;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("1学生，2教师")
    private Integer accountType;

    @ApiModelProperty("精品课所在班级id")
    private Long gradeId;

    @ApiModelProperty("班型id")
    private Long classTypeId;

    @ApiModelProperty("试用帐号的到期日期")
    private LocalDate tryOutEndDate;

    private Integer switchPk;

    @ApiModelProperty("1精品课学生自动生成，2手动添加")
    private Integer addType;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableLogic
    private Integer deleted;

}
